package com.mumu.studykotlin.gra.inherit

/**
 *edie create on 2019/7/25
 *
 */
class Student : Persion, People {
    constructor(name: String, age: Int) : super(name)


    override fun say() {
        super<Persion>.say()
        super<People>.say()
        print("学生会读书")
    }

    init {
        println("学生初始化")
    }

    fun Student.Print() {
        say()
    }

    fun Student.Drink(){
    }

    fun eat(food: String) {
        println("我要吃$food")
    }
}